package com.demo.proxy;

public class CarLogProxy implements Moveable {
    private Moveable car;

    public CarLogProxy(Moveable car) {
        this.car = car;
    }

    @Override
    public void move() {
        long starttime = System.currentTimeMillis();
        System.out.println("日志开始...");
        car.move();
        long endtime = System.currentTimeMillis();
        System.out.println("日志结束");

    }
}
